package com.jhgk.jhcee.auth.model;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

public class Permission implements Serializable {
    @ApiModelProperty(value = "主关键字")
    private Integer id;

    @ApiModelProperty(value = "父节点ID")
    private Integer parentId;

    @ApiModelProperty(value = "名字")
    private String name;

    @ApiModelProperty(value = "shiro权限字串")
    private String code;

    @ApiModelProperty(value = "全路径名字")
    private String fname;

    @ApiModelProperty(value = "全路径ID")
    private String fid;

    @ApiModelProperty(value = "功能Url")
    private String url;

    @ApiModelProperty(value = "节点类型，0：中间节点，1：叶子节点")
    private Integer nodeType;

    @ApiModelProperty(value = "链接打开方式，0：当前窗口，嵌入框架；1：当前窗口，脱离框架，2：新窗口，脱离框架。")
    private Integer openType;

    @ApiModelProperty(value = "图标")
    private String iconName;

    @ApiModelProperty(value = "同一级节点显示排序编号")
    private String sortNo;

    @ApiModelProperty(value = "权限全路径顺序号")
    private String sequence;

    @ApiModelProperty(value = "0：禁用 ，1：启用")
    private Integer validState;

    @ApiModelProperty(value = "显示时是否自动展开，0：不自动展开，1：自动展开")
    private Integer autoExpand;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "乐观锁")
    private Integer version;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public String getFid() {
        return fid;
    }

    public void setFid(String fid) {
        this.fid = fid;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getNodeType() {
        return nodeType;
    }

    public void setNodeType(Integer nodeType) {
        this.nodeType = nodeType;
    }

    public Integer getOpenType() {
        return openType;
    }

    public void setOpenType(Integer openType) {
        this.openType = openType;
    }

    public String getIconName() {
        return iconName;
    }

    public void setIconName(String iconName) {
        this.iconName = iconName;
    }

    public String getSortNo() {
        return sortNo;
    }

    public void setSortNo(String sortNo) {
        this.sortNo = sortNo;
    }

    public String getSequence() {
        return sequence;
    }

    public void setSequence(String sequence) {
        this.sequence = sequence;
    }

    public Integer getValidState() {
        return validState;
    }

    public void setValidState(Integer validState) {
        this.validState = validState;
    }

    public Integer getAutoExpand() {
        return autoExpand;
    }

    public void setAutoExpand(Integer autoExpand) {
        this.autoExpand = autoExpand;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", parentId=").append(parentId);
        sb.append(", name=").append(name);
        sb.append(", code=").append(code);
        sb.append(", fname=").append(fname);
        sb.append(", fid=").append(fid);
        sb.append(", url=").append(url);
        sb.append(", nodeType=").append(nodeType);
        sb.append(", openType=").append(openType);
        sb.append(", iconName=").append(iconName);
        sb.append(", sortNo=").append(sortNo);
        sb.append(", sequence=").append(sequence);
        sb.append(", validState=").append(validState);
        sb.append(", autoExpand=").append(autoExpand);
        sb.append(", description=").append(description);
        sb.append(", version=").append(version);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}